//
//  FKGetTableViewController.m
//  FKNetWorking
//
//  Created by 云眼科技 on 16/7/16.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//


#import "FKGetTableViewController.h"
#import "UIViewController+FKAdd.h"
#import "FKNetworking/FKNetworkingManager.h"


@interface FKGetTableViewController ()<UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) NSMutableArray *dataArray;
@property (nonatomic, strong) NSMutableDictionary *paraDict;

@end

NSString *url = @"http://www.yunyankeji.com:8088/link/GetAllProductListItems";
static NSString *const get_identifier = @"fk_get_tableViewCell";

@implementation FKGetTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:get_identifier];
    [self fk_setBackGroundColor:[UIColor whiteColor]];
}


#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.dataArray.count;;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:get_identifier];
    cell.textLabel.text = @"测试数据";
    return cell;
}

-(NSMutableArray *)dataArray{
    if (!_dataArray) {
        _dataArray = [[NSMutableArray alloc] init];
    }
    return _dataArray;
}


-(NSMutableDictionary *)paraDict{
    if (!_paraDict) {
        _paraDict = [[NSMutableDictionary alloc]init];
        _paraDict[@"os"]           = @"ios";
        _paraDict[@"page"]         = @"1";
        _paraDict[@"pageCount"]    = @"30";
        _paraDict[@"unityVersion"] = @"5.3.4f";
    }
    return _paraDict;
}






@end
